package com.example.w.common.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * payment
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Payment implements Serializable {

    public Payment(Long orderId, BigDecimal amountOfMoney, Integer paymentType, String serialNumber, Date paymentTime, Long cashierId) {
        this.orderId = orderId;
        this.amountOfMoney = amountOfMoney;
        this.paymentType = paymentType;
        this.serialNumber = serialNumber;
        this.paymentTime = paymentTime;
        this.cashierId = cashierId;
    }

    /**
     * 支付实例id
     */
    private Long id;

    /**
     * 支付的订单id
     */
    private Long orderId;

    /**
     * 支付金额
     */
    private BigDecimal amountOfMoney;

    /**
     * 支付方式：0/现金，1/微信，2/支付宝，3/银行卡
     */
    private Integer paymentType;

    /**
     * 支付流水号
     */
    private String serialNumber;

    /**
     * 支付时间
     */
    private Date paymentTime;

    /**
     * 收银员id
     */
    private Long cashierId;

    private static final long serialVersionUID = 1L;
}